package com.bjsxt.livegoods.sendyzm.client.controller;

import com.bjsxt.livegoods.sendyzm.client.service.SendyzmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 验证码服务消费者-控制器
 */
@RestController
public class SendyzmController {
    @Autowired
    private SendyzmService sendyzmService;

    @PostMapping
    @CrossOrigin
    public Map<String,Object> send(String phone){
        return sendyzmService.send(phone);
    }
}
